instance ItMi_StoneOfKnowlegde_MIS(C_Item)
{
	name = "Stein des Wissens";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MULTI;
	value = 0;
	visual = "ItMi_StoneOfKnowlegde_MIS.3DS";
	material = MAT_STONE;
	description = name;
};
 
instance ItWr_PaladinLetter_MIS(C_Item)
{
	name = "Brief";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItWr_Scroll_02.3DS";
	material = MAT_LEATHER;
	on_state[0] = UsePaladinLetter;
	scemeName = "MAP";
	description = "Brief an Lord Hagen";
};
 
 
func void UsePaladinLetter()
{
	var int nDocID;
	nDocID = Doc_Create();
	Doc_SetPages(nDocID,1);
	Doc_SetPage(nDocID,0,"letters.TGA",0);
	Doc_SetFont(nDocID,-1,FONT_Book);
	Doc_SetMargins(nDocID,-1,50,50,50,50,1);
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"Lord Hagen!");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"Die Expedition ins Minental ist gescheitert. Viele Verluste zeichnen unseren Weg. Wir Uberlebenden sitzen in der Burg fest, umgeben von Orks. ");
	Doc_PrintLines(nDocID,0,"Drachen haben uns mehrmals angegriffen und den kompletten Landstrich um die Burg zerstort. Mit Innos' Hilfe werden wir ausharren, bis die Verstarkung eintrifft. Ein Ausfall ist unmoglich. ");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"Innos schutze uns alle");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"Garond");
	Doc_Show(nDocID);
};
 
 
instance ItWr_LetterForGorn_MIS(C_Item)
{
	name = "Brief";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItWr_Scroll_01.3DS";
	material = MAT_LEATHER;
	on_state[0] = UseLetterForGorn;
	scemeName = "MAP";
	description = "Miltens Notiz fur Gorn";
};
 
 
func void UseLetterForGorn()
{
	var int nDocID;
	nDocID = Doc_Create();
	Doc_SetPages(nDocID,1);
	Doc_SetPage(nDocID,0,"letters.TGA",0);
	Doc_SetFont(nDocID,-1,FONT_Book);
	Doc_SetMargins(nDocID,-1,50,50,50,50,1);
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLine(nDocID,0,"Gorn!");
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLines(nDocID,0,"Garond hat zugestimmt dich freizulassen - fur 1000 Goldstucke. ");
	Doc_PrintLines(nDocID,0,"Also, falls du noch irgendwo Gold versteckt hast - jetzt ist die Zeit, damit rauszurucken. ");
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLine(nDocID,0,"Milten ");
	Doc_Show(nDocID);
};
 
 
instance ItKe_PrisonKey_MIS(C_Item)
{
	name = "Kerkerschlussel";
	mainflag = ITEM_KAT_NONE;
	flags = 0;
	value = 0;
	visual = "ItKe_Key_01.3ds";
	material = MAT_METAL;
	description = name;
	text[2] = "Der Schlussel zum Kerker";
	text[3] = "in der Burg";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ItKe_OC_Store(C_Item)
{
	name = "Lagerschlussel";
	mainflag = ITEM_KAT_NONE;
	flags = 0;
	value = 0;
	visual = "ItKe_Key_02.3ds";
	material = MAT_METAL;
	description = name;
	text[2] = "Der Schlussel zum Lagerraum";
	text[3] = "in der Burg";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITKE_OC_STORE2(C_Item)
{
	name = "Schlussel";
	mainflag = ITEM_KAT_NONE;
	flags = 0;
	value = 0;
	visual = "ItKe_Key_02.3ds";
	material = MAT_METAL;
	description = name;
	text[2] = "Der Schlussel vom inneren Raum";
	text[3] = "des Lagerhauses der Burg.";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITKE_ErzBaronFlur(C_Item)
{
	name = "Turschlussel";
	mainflag = ITEM_KAT_NONE;
	flags = 0;
	value = 0;
	visual = "ItKe_Key_02.3ds";
	material = MAT_METAL;
	description = "Fur die erste Tur";
	text[2] = "Eingraviert ist der Name";
	text[3] = "Gomez";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITKE_ErzBaronRaum(C_Item)
{
	name = "Turschlussel";
	mainflag = ITEM_KAT_NONE;
	flags = 0;
	value = 0;
	visual = "ItKe_Key_01.3ds";
	material = MAT_METAL;
	description = "Fur die zweite Tur";
	text[2] = "Eingraviert ist der Name";
	text[3] = "Gomez";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITKE_ERZBARONTREASURE(C_Item)
{
	name = "Turschlussel";
	mainflag = ITEM_KAT_NONE;
	flags = 0;
	value = 0;
	visual = "ItKe_Key_01.3ds";
	material = MAT_METAL;
	description = "Der Schlussel zur dritten Tur";
	text[2] = "Eingraviert ist der Name";
	text[3] = "Gomez";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITKE_OC_TOWERCHEST(C_Item)
{
	name = "Schlussel";
	mainflag = ITEM_KAT_NONE;
	flags = 0;
	value = 0;
	visual = "ItKe_Key_02.3ds";
	material = MAT_METAL;
	description = name;
	text[2] = "Schlussel der Truhe";
	text[3] = "im Burgturm";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITKE_NC_COOKCHEST(C_Item)
{
	name = "Schlussel";
	mainflag = ITEM_KAT_NONE;
	flags = 0;
	value = 0;
	visual = "ItKe_Key_02.3ds";
	material = MAT_METAL;
	description = name;
	text[2] = "Der Schlussel des Kochs";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ItMi_GornsTreasure_MIS(C_Item)
{
	name = "Lederbeutel";
	mainflag = ITEM_KAT_NONE;
	flags = 0;
	value = 250;
	visual = "ItMi_Pocket.3ds";
	scemeName = "MAPSEALED";
	material = MAT_METAL;
	on_state[0] = UseGornsTreasure;
	description = "Gorns Lederbeutel";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void UseGornsTreasure()
{
	B_PlayerFindItem(ItMi_Gold,250);
	Gorns_Beutel = TRUE;
};
 
 
instance ItWr_Silvestro_MIS(C_Item)
{
	name = "Notiz";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItWr_Scroll_01.3DS";
	material = MAT_LEATHER;
	on_state[0] = UseItwr_Silvestro;
	scemeName = "MAP";
	description = "Silvestros Notiz ";
};
 
 
func void UseItwr_Silvestro()
{
	var int nDocID;
	nDocID = Doc_Create();
	Doc_SetPages(nDocID,1);
	Doc_SetPage(nDocID,0,"letters.TGA",0);
	Doc_SetFont(nDocID,-1,FONT_Book);
	Doc_SetMargins(nDocID,-1,50,50,50,50,1);
	Doc_PrintLine(nDocID,0,"von Silvestro, Paladin des Konigs ");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"Ein weiterer Tag Schurferei liegt vor uns. Heute wollen wir die Wand durchbrechen und uns tiefer in den Fels hineingraben.");
	Doc_PrintLines(nDocID,0,"Ich habe ein ungutes Gefuhl - deshalb werde ich das Erz in ein Versteck bringen lassen.");
	Doc_PrintLines(nDocID,0,"Diego ist der einzige von uns, der sich hier auskennt - ich muss ihm vertrauen. Er wird die Kisten in Sicherheit bringen - aber ich werde ihn nicht alleine losschicken.");
	Doc_PrintLines(nDocID,0,"Das Erz muss unter allen Umstanden geschutzt werden, deshalb lasse ich Diego von zwei Rittern begleiten.");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"Lang lebe der Konig");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"Silvestro");
	Doc_Show(nDocID);
};
 
 
instance ItAt_ClawLeader(C_Item)
{
	name = "Snapperkrallen";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = 150;
	visual = "ItAt_Claw.3DS";
	material = MAT_LEATHER;
	description = "Die Krallen des Rudelfuhrers";
	text[0] = "";
	text[1] = "";
	text[2] = "";
	text[3] = "";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITAT_CLAWBLACKSNAPPER(C_Item)
{
	name = "Snapperkrallen";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = 200;
	visual = "ItAt_Claw.3DS";
	material = MAT_LEATHER;
	description = "Die Klauen des schwarzen Snappers";
	text[0] = "";
	text[1] = "";
	text[2] = "";
	text[3] = "";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITAT_VEPRFUR(C_Item)
{
	name = "Eberfell";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = 300;
	visual = "ItAt_WargFur.3DS";
	material = MAT_LEATHER;
	description = name;
	text[0] = "";
	text[1] = "";
	text[2] = "Dieses Fell habe ich dem Wilden Eber abgezogen.";
	text[3] = "";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITAT_NIGHTHUNTERFUR(C_Item)
{
	name = "Fell des Jagers der Nacht";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = 500;
	visual = "ItAt_ShadowFur.3DS";
	material = MAT_LEATHER;
	description = name;
	text[0] = "";
	text[1] = "";
	text[2] = "Dieses Fell habe ich dem toten";
	text[3] = "Jager der Nacht abgezogen.";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITAT_LUKEREGG(C_Item)
{
	name = "Lurkerei";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MISSION | ITEM_MULTI;
	value = 150;
	visual = "ItAt_Crawlerqueen.3ds";
	material = MAT_LEATHER;
	description = name;
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ItSe_Olav(C_Item)
{
	name = "Lederbeutel";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MULTI;
	value = 25;
	visual = "ItMi_Pocket.3ds";
	scemeName = "MAPSEALED";
	material = MAT_METAL;
	on_state[0] = UseOlav;
	description = "Olavs Beutel";
	text[0] = "";
	text[1] = "";
	text[2] = "Ein paar Munzen klimpern darin";
	text[3] = "";
	text[4] = "";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void UseOlav()
{
	B_PlayerFindItem(ItMi_Gold,25);
};
 
 
instance ItMi_GoldPlate_MIS(C_Item)
{
	name = "Goldener Teller";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MULTI;
	value = Value_GoldPlate;
	visual = "ItMi_GoldPlate.3DS";
	material = MAT_METAL;
	description = name;
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ItKe_Pass_MIS(C_Item)
{
	name = "Schlussel zum Pass";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItKe_Key_02.3ds";
	material = MAT_METAL;
	description = "Ein kleiner Schlussel";
	text[1] = "Offnet das Tor am Pass";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ItKe_Bromor(C_Item)
{
	name = "Bromors Schlussel";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItKe_Key_02.3ds";
	material = MAT_METAL;
	description = "Der Zimmerschlussel";
	text[1] = "vom Bordellbesitzer";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITKE_RUNE_MIS(C_Item)
{
	name = "Schlussel";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItKe_Key_01.3ds";
	material = MAT_METAL;
	description = "Ein kleiner Truhenschlussel";
	text[1] = "Die Truhe zu dem Schlussel";
	text[2] = "steht unter einer Brucke";
	text[3] = "und enthalt einen Runenstein";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ItWr_Bloody_MIS(C_Item)
{
	name = "Notiz";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItWr_Scroll_02.3DS";
	material = MAT_LEATHER;
	on_state[0] = UseBloodMIS;
	scemeName = "MAP";
	description = "Gift der Blutfliegen";
};
 
 
func void UseBloodMIS()
{
	var int nDocID;
	nDocID = Doc_Create();
	Doc_SetPages(nDocID,1);
	Doc_SetPage(nDocID,0,"letters.TGA",0);
	Doc_SetFont(nDocID,-1,FONT_Book);
	Doc_SetMargins(nDocID,-1,50,50,50,50,1);
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"Der Stachel der Blutfliegen enthalt ein todliches Gift, das niemand, der klaren Verstandes ist, zu sich nehmen wird.");
	Doc_PrintLines(nDocID,0,"Es sei denn, er beherrscht die Kunst, den Stachel zu entnehmen und kennt die folgende Regel. ");
	Doc_PrintLines(nDocID,0,"Der Stachel wird mit scharfer Klinge von der Spitze zum Schaft sauberlich aufgeschnitten.");
	Doc_PrintLines(nDocID,0,"Die obere Hautschicht wird entfernt. Das freigewordene Gewebe wird um die Drusen herum aufgeschnitten. ");
	Doc_PrintLines(nDocID,0,"Der besondere Saft des Gewebes ist mehr als genie?bar, er hat heilende Krafte. ");
	Doc_PrintLines(nDocID,0,"Allerdings entwickelt der menschliche Korper im Laufe der Zeit eine Immunitat gegen diesen heilenden Trunk.");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"Damarok");
	Doc_Show(nDocID);
	if(Knows_Bloodfly == FALSE)
	{
		Knows_Bloodfly = TRUE;
		Log_CreateTopic(Topic_Bonus,LOG_NOTE);
		B_LogEntry(Topic_Bonus,"Ich wei? jetzt, was ich tun muss, um heilenden Saft aus den abgetrennten Stacheln von Blutfliegen trinken zu konnen. ");
		B_GivePlayerXP(XP_Ambient);
	};
};
 
 
instance ItWr_Pfandbrief_MIS(C_Item)
{
	name = "Pfandbrief";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItWr_Scroll_02.3DS";
	material = MAT_LEATHER;
	on_state[0] = UsePfandbrief;
	scemeName = "MAP";
	description = name;
};
 
 
func void UsePfandbrief()
{
	var int nDocID;
	nDocID = Doc_Create();
	Doc_SetPages(nDocID,1);
	Doc_SetPage(nDocID,0,"letters.TGA",0);
	Doc_SetFont(nDocID,-1,FONT_Book);
	Doc_SetMargins(nDocID,-1,50,50,50,50,1);
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLine(nDocID,0,"Zur Tilgung der ausstehenden Schulden wird ");
	Doc_PrintLine(nDocID,0,"ein Pfand ausgesetzt, das mit seinem Reinwert");
	Doc_PrintLine(nDocID,0,"der Hohe der Schulden entspricht.");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"Pfand: Verzierter Kelch aus Gold ");
	Doc_PrintLines(nDocID,0,"aus der Sammlung der Blutkelche");
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLine(nDocID,0,"gez.");
	Doc_PrintLine(nDocID,0,"Lutero, Handler  ");
	Doc_PrintLine(nDocID,0," ");
	Doc_PrintLine(nDocID,0,"Lehmar, Pfandleiher");
	Doc_Show(nDocID);
};
 
 
instance ITWR_LUTEROLOAN(C_Item)
{
	name = "Luteros Schuldschein";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItWr_Scroll_02.3DS";
	material = MAT_LEATHER;
	on_state[0] = use_luteroloan;
	scemeName = "MAP";
	description = name;
};
 
 
func void use_luteroloan()
{
	var int nDocID;
	nDocID = Doc_Create();
	Doc_SetPages(nDocID,1);
	Doc_SetPage(nDocID,0,"letters.TGA",0);
	Doc_SetFont(nDocID,-1,FONT_Book);
	Doc_SetMargins(nDocID,-1,50,50,50,50,1);
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"Ich, Lutero, habe beim Pfandleiher Lehmar eine Anleihe in Hohe von 5000 Goldmunzen aufgenommen und verpflichte mich, diese Schuld zum angegebenen Termin mit den vereinbarten Zinsen zuruckzuzahlen.");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"gez.");
	Doc_PrintLine(nDocID,0,"Lutero, Handler");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"Lehmar, Pfandleiher");
	Doc_Show(nDocID);
};
 
 
instance ItWr_Map_OldWorld_Oremines_MIS(C_Item)
{
	name = "Garonds Minenkarte";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION | ITEM_MULTI;
	value = 50;
	visual = "ItWr_Map_01.3DS";
	material = MAT_LEATHER;
	scemeName = "MAP";
	on_state[0] = Use_Map_OldWorld_Oremines;
	description = name;
	text[0] = "";
	text[1] = "";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void Use_Map_OldWorld_Oremines()
{
	var int Document;
	if(Npc_IsPlayer(self))
	{
		B_SetPlayerMap(ItWr_Map_OldWorld_Oremines_MIS);
	};
	Document = Doc_CreateMap();
	Doc_SetPages(Document,1);
	Doc_SetPage(Document,0,"Map_OldWorld_Oremines.tga",TRUE);
	Doc_SetLevel(Document,"OldWorld\OldWorld.zen");
	Doc_SetLevelCoords(Document,-78500,47500,54000,-53000);
	Doc_Show(Document);
};
 
 
instance ItWr_Manowar(C_Item)
{
	name = "Text";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItWr_Scroll_02.3DS";
	material = MAT_LEATHER;
	on_state[0] = UseManowar;
	scemeName = "MAP";
	description = "Ein Liedtext";
};
 
 
func void UseManowar()
{
	var int nDocID;
	nDocID = Doc_Create();
	Doc_SetPages(nDocID,1);
	Doc_SetPage(nDocID,0,"letters.TGA",0);
	Doc_SetFont(nDocID,-1,FONT_Book);
	Doc_SetMargins(nDocID,-1,50,50,50,50,1);
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"Dominiques Ruf");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"Wir werden seinen Ruhm ernten ");
	Doc_PrintLines(nDocID,0,"Innos steht bei mir und meinen Brudern");
	Doc_PrintLines(nDocID,0,"Ich werde alle auf meinem Weg wie Schafe schlachten");
	Doc_PrintLines(nDocID,0,"denn er ist das Feuer in meinem Herz");
	Doc_PrintLines(nDocID,0,"Meine Klinge ist nur ihm geweiht  ");
	Doc_PrintLines(nDocID,0,"an diesem Tag wird sein Name erklingen");
	Doc_PrintLines(nDocID,0,"Jeder der sich in meinen Weg stellt");
	Doc_PrintLines(nDocID,0,"wird durch meine Hand sterben");
	Doc_PrintLines(nDocID,0,"denn ich bin ein Krieger Innos");
	Doc_Show(nDocID);
};
 
 
instance ItWr_KDWLetter(C_Item)
{
	name = "Nachricht";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItWr_Scroll_02.3DS";
	material = MAT_LEATHER;
	on_state[0] = UseKDWLetter;
	scemeName = "MAP";
	description = "Eine Nachricht";
};
 
 
func void UseKDWLetter()
{
	var int nDocID;
	nDocID = Doc_Create();
	Doc_SetPages(nDocID,1);
	Doc_SetPage(nDocID,0,"letters.TGA",0);
	Doc_SetFont(nDocID,-1,FONT_Book);
	Doc_SetMargins(nDocID,-1,50,50,50,50,1);
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"Wir haben das Lager verlassen. Jetzt da die Barriere endlich gefallen ist, werden wir das Zentrum der Zerstorung aufsuchen. Vielleicht finden wir dort die Antworten, die wir soviele Jahre gesucht haben. Wohin unsere Reise danach geht, wei? nur Adanos.");
	Doc_PrintLines(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"Adanos ist bei uns");
	Doc_PrintLine(nDocID,0,"Saturas");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"");
	Doc_Show(nDocID);
};
 
 
instance ItWr_GilbertLetter(C_Item)
{
	name = "Notiz";
	mainflag = ITEM_KAT_DOCS;
	flags = ITEM_MISSION;
	value = 0;
	visual = "ItWr_Scroll_02.3DS";
	material = MAT_LEATHER;
	on_state[0] = UseGilbertLetter;
	scemeName = "MAP";
	description = "Eine Nachricht";
};
 
 
func void UseGilbertLetter()
{
	var int nDocID;
	nDocID = Doc_Create();
	Doc_SetPages(nDocID,1);
	Doc_SetPage(nDocID,0,"letters.TGA",0);
	Doc_SetFont(nDocID,-1,FONT_Book);
	Doc_SetMargins(nDocID,-1,50,50,50,50,1);
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"Mir reicht's. Ich habe mich hier lange genug versteckt. Und wenn ich das richtig mitgekriegt habe, ist die Barriere nun endlich gefallen.  ");
	Doc_PrintLines(nDocID,0,"Es wird wohl kaum noch jemand nach mir suchen. Ich hab die Schnauze voll von dieser Hohle und dem ganzen Tal. Wird Zeit, dass ich nach Hause komme.");
	Doc_PrintLines(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLines(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"Gilbert");
	Doc_PrintLine(nDocID,0,"");
	Doc_PrintLine(nDocID,0,"");
	Doc_Show(nDocID);
};
 
 
instance ItRi_Tengron(C_Item)
{
	name = NAME_Ring;
	mainflag = ITEM_KAT_MAGIC;
	flags = ITEM_RING;
	value = Value_Ri_Hp;
	visual = "ItRi_Hp_01.3ds";
	visual_skin = 0;
	material = MAT_METAL;
	on_equip = Equip_ItRi_Tengron;
	on_unequip = UnEquip_ItRi_Tengron;
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = NAME_ADDON_TengronsRing;
	text[2] = NAME_Bonus_HP;
	count[2] = Ri_Hp;
	text[5] = NAME_Value;
	count[5] = value;
	inv_zbias = INVCAM_ENTF_RING_STANDARD;
	inv_rotz = INVCAM_Z_RING_STANDARD;
	inv_rotx = INVCAM_X_RING_STANDARD;
};
 
 
func void Equip_ItRi_Tengron()
{
	self.attribute[ATR_HITPOINTS_MAX] = self.attribute[ATR_HITPOINTS_MAX] + Ri_Hp;
	self.attribute[ATR_HITPOINTS] = self.attribute[ATR_HITPOINTS] + Ri_Hp;
};
 
func void UnEquip_ItRi_Tengron()
{
	self.attribute[ATR_HITPOINTS_MAX] = self.attribute[ATR_HITPOINTS_MAX] - Ri_Hp;
	if(self.attribute[ATR_HITPOINTS] > (Ri_Hp + 1))
	{
		self.attribute[ATR_HITPOINTS] = self.attribute[ATR_HITPOINTS] - Ri_Hp;
	}
	else
	{
		self.attribute[ATR_HITPOINTS] = 2;
	};
};